<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>




</head>
<body>

{template 'header.html'}








<div class="container">
	
    
    <div class="main">
    	<div><a href="">首页</a> » <a href="{url("?module=example")}">代码分享</a> » {$title}</div>
        
        <style>
			.example_view{
				
			}
			.example_view .thumb{
				float:left; display:inline; margin:0 20px 20px 0;
			}
		</style>
		<div class="example_view">
        	<div class="thumb">
            	<img src="{php echo $r[thumb] ? $r[thumb] : 'misc/nopic.gif'}" width="200"/>
            </div>
            <div class="desc">
            	  <span class="{$style}">{$title}</span>
                  <br/>授权形式：{$copytype}
                  <br/>更新时间：{$updatetime}
                  <br/>软件语言：{$language}
                  <br/>软件平台：{$systems}
                  <br/>软件类别：{$classtype}
                  <br/>文件大小：{$filesize}
                  <br/>评论等级：{$stars}
                  <br/>下载次数：<span id="hits">0</span>（今日：<span id="todaydowns">{$todaydowns}</span>，本周：<span id="weekdowns">{$weekdowns}</span>，本月：<span id="monthdowns">{$monthdowns}</span>）
            </div>
        </div>
        
        <div class="clear">
        		软件简介:{$content}
                <br/>下载地址:{$downurl}<br/>{$downurls}
        </div>
        
         
        {php list($mod, $field, $value) = array('example', 'exampleid', $exampleid);}
        {template 'load.html','comment'}
       
        
      
      <div class="mod">
            <div class="head">工具</div>
            <div class="body">
                {if isset($MODULE[error_report])}<a href="javascript:$('#errors').submit();">[错误报告]</a>{/if} 
                {if isset($MODULE[mail])}<a href="javascript:$('#sendmail').submit();">[推荐]</a>{/if} 
                <a href="member/collect.php?contentid={$contentid}&action=add">[收藏]</a>
                <a href="javascript:window.print();">[打印]</a> <a href="javascript:window.close();">[关闭]</a> 
                <a href="{SITE_URL}{$url}#top">[返回顶部]</a> 
            </div>
        </div>
    
     
    </div>
    
    
    <script type="text/javascript">
		$(function(){
			$(window).scroll(function(){ 
				if($(window).scrollTop()<165){
					$('.aside').removeClass('fixed');
				}
				
				// 不给ie6效果
				if($(window).scrollTop()>165&&!($.browser.msie&&$.browser.version=='6.0')){
					$('.aside').addClass('fixed');
				}
			});
		})
	</script>
    <style type="text/css">
		/* 解决固定层在IE6下闪的问题 */
		*html{
			background-image:url(about:blank);
			background-attachment:fixed;
		}
		.fixed{
			position:absolute; 
			margin-left:10px;
			position:fixed; 
			clip:rect(0 100% 100% 0);
			_position:absolute;
			
			/* 底部 */
			top:0px;
		}
	</style>
    <div class="aside">
    	
        <style type="text/css">
			.side .rss{
				margin:20px 0 10px 10px; height:auto; overflow:hidden;
			}
			.side .rss img{
				float:left; display:inline; margin:0 5px 5px 0;
			}
		</style>
        <div class="rss">
        	<img src="skin/images/rss.png"/>
        	<img src="skin/images/zx.png"/>
        	<img src="skin/images/xg.png"/>
        	<img src="skin/images/qq.png"/>
        	<img src="skin/images/google.png"/>
        </div>
        
        
        <div class="mod">
            <div class="head">热门阅读</div>
            <div class="body">
                <ul>
              {get sql="SELECT * FROM `table_example` WHERE  status=99 ORDER BY exampleid DESC" rows="20" page="$page"}
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
                {/get}
              </ul>
            </div>
        </div>

       
    </div>
</div>


<script type="text/javascript" src="{SKIN_PATH}comment/comment.js"></script>
<script type="text/javascript">
<!--
$().ready(function() {        
	if(setting.ischecklogin == 0 && getcookie('auth') === null)
	{
		$('#comment').val("请您登陆后发表评论！");
		$('#comment').attr("disabled","disabled");
		$('#dosubmit').attr("disabled","disabled");
	}
	else 
	{
		$('#comment').val("我也来说两句！");
	}
});
function reply_restoration()
{
	if($('#comment').val() == '')
	{
		$('#comment').val("我也来说两句！");
	}
}
function reply_clearfield()
{
	if ($('#comment').val() == "我也来说两句！") 
	{
		$('#comment').val("");   
	}
	document.getElementById('code_img').style.display = 'block';document.getElementById('code_img').src='misc/checkcode/checkcode.php';
}
function checkForm()
{
	if($('#comment').val() == '' || $('#comment').val() == "我也来说两句！")
	{
		alert("内容不能为空");
		$('#comment').focus();
		return false;
	}
	if($('#checkcode').val() == '' )
	{
		alert("验证码不能为空");
		$('#checkcode').focus();
		return false;
	}
	if ($('#comment').val().length > 1000) 
	{
		alert("内容太长，最多 1000 个文字");
		return false;
	}
}
//-->
</script>
<script language="javascript" src="?module=example&action=count&exampleid={$exampleid}"></script>
{template 'footer.html'}